<?php
namespace app\index\model;
use think\Model;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/22
 * Time: 16:04
 */
class Store extends Model{
	protected $table = 'boc_store';
    protected $connection = 'JXC';
    public function jsnum($where,$num){
        $data=Store::raw('cknum-'.$num)->save();
        return $data;
    }
    public function zjnum($where,$num){
        $data=Store::raw('cknum+'.$num)->save();
        return $data;
    }
    public function getone($where){
        $data=Store::where($where)->find();
        return $data;
    }
}